/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.pa165.hauntedhouses.service;

import cz.muni.fi.pa165.hauntedhouses.dto.AccountDTO;

/**
 *
 * @author Siliarus
 */
public interface SecurityService {
    /**A method for logging a user into the system
     * 
     * @param username users username
     * @param password users password
     * @return return AccountDTO to be able to determine his/her admin rights
     */
    AccountDTO login (String username, String password);
    
    /**Registers a new user
     * 
     * @param acc account to be registered 
     */
    AccountDTO register (AccountDTO acc);
}
